<template>
    <button class="hamburger-btn" @click="toggleMenu">
        <span class="icon">&#xe614;</span> <!-- 使用字体图标编码 -->
    </button>
</template>

<script>
export default {
  name: 'HamburgerButton',
  methods: {
    toggleMenu () {
      console.log('Hamburger menu toggled')
      // 在这里添加处理菜单展开/折叠的逻辑
    }
  }
}
</script>

<style scoped>

.hamburger-btn {
    position: fixed;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66px;
    height: 82px;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.902);
    cursor: pointer;
    z-index: 1000; /* 确保按钮在其他元素之上 */
    span.icon {
        font-family: 'iconfont'; /* 替换为你实际的字体名称 */
        font-size: 33px;
    }
    &:before {
        content: "";
        position: absolute;
        left: 0;
        width: 1px;
        height: 58px;
        background-image: url('@/assets/gradient-gray-line.png');
        background-size: contain;
    }
}
</style>
